package com.itheima2.work;



public class Demo01 {
    public static void main(String[] args) {
        Demo1 de =new Demo1(11,"张三",18);
        Demo1 de1 = new Demo1(11,"张三",18);
        Demo1 de2 = new Demo1(11,"张三",18);

        String s = de.toString();
        System.out.println(s);

        System.out.println(de.equals(de1));





    }
}
